package com.example.tuike.entity;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/2/9 16:48

 * @Version 1.0*/
public class FetchTask implements Comparable<FetchTask> {
    private Feeds feed;
    private int priority;

    public FetchTask(Feeds feed, int priority) {
        this.feed = feed;
        this.priority = priority;
    }

    public Feeds getFeed() {
        return feed;
    }

    public int getPriority() {
        return priority;
    }

    @Override
    public int compareTo(FetchTask other) {
        return Integer.compare(this.priority, other.priority);
    }
}